<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">

	document.write("<table border='1'>");
	for(x=9;x>0;x--){
	document.write("<tr>");
	for(var y=1;y<=x;y++){
		if (y%2!==0){
			document.write("<td style='background: #FF0000 '>"+y+"x"+x+"="+x*y+"</td>");
		}else if(x%2!==0){
				document.write('<td style="background: #0000FF ">'+y+"x"+x+"="+x*y+"</td>");
			    }else{
				    document.write('<td style="background: #D4DBED ">'+y+"x"+x+"="+x*y+"</td>");
			        }
				
	    }
	document.write("</tr>");	
	}
	document.write("</table>");

	</script>
</head>
<body>
	
</body>
</html>